package ObjGitService

import (
	"arabApi/app/api/models/ObjGitModel"
	"arabApi/app/api/requests/ObjGitRequest"
	"github.com/spf13/cast"
)

func PathList(id int64) []ObjGitModel.ObjJobPath {
	return ObjGitModel.PathList(id)
}

func PathAdd(r ObjGitRequest.ObjGitPushPath) (int64, error) {
	return ObjGitModel.PathAdd(r)
}
func PathEdit(r ObjGitRequest.ObjGitPushPath) error {
	return ObjGitModel.PathEdit(r)
}
func PathMsgByID(r string) ObjGitModel.ObjJobPath {
	id := cast.ToInt64(r)
	return ObjGitModel.PathMsgByid(id)
}

func Group(id int64, step int64) []ObjGitModel.ObjJobPath {
	return ObjGitModel.Group(id, step)
}
